<template>
  <div class="shop-services">
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">7天退换</div>
        <div class="desc">7天无理由退货</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">正品保障</div>
        <div class="desc">正品保障</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">两小时发货</div>
        <div class="desc">两小时发货</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">退货承诺</div>
        <div class="desc">退货承诺</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">试用中心</div>
        <div class="desc">试用中心</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">实体验证</div>
        <div class="desc">实体验证</div>
      </div>
      <div class="status">已开通</div>
      <el-button type="danger" size="small">退出</el-button>
    </div>
    <div class="item-box">
      <div class="icon"></div>
      <div class="info">
        <div class="name">消协保证</div>
        <div class="desc">消协保证</div>
      </div>
      <div class="status"></div>
      <el-button type="primary" size="small">开通</el-button>
    </div>
  </div>
</template>

<style lang="scss" scoped>
.shop-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  .item-box {
    width: calc(100% / 3 - 50px);
    padding: 20px;
    display: flex;
    align-items: center;
    background-color: #f2f2f2;
    margin-bottom: 16px;
    .icon {
      width: 40px;
      height: 40px;
      background-color: #fff;
    }
    .info {
      flex: 1;
      width: 1%;
      height: 40px;
      margin-left: 12px;
      display: flex;
      flex-direction: column;
      .name {
        font-weight: bold;
      }
      .desc {
        font-size: 12px;
        color: #999;
        margin-top: auto;
      }
    }
    .status {
      margin-right: 12px;
      color: #409eff;
    }
  }
}
</style>
